<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../back-common.jsp"%>
<%@ include file="/WEB-INF/pages/common/taglib.jsp"%>

<script src="${contextPath}/resources/common/js/jquery.validate.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" media="screen" href="${contextPath}/resources/common/css/errorform.css" />
<script type="text/javascript">
$.validator.setDefaults({
});
 $(document).ready(function() {
	$("#form1").validate({
		rules: {
			companyCode:  "required",
			company: "required",
			link: "required"
		},
		messages: {
			companyCode: "请输入商家编码",
			company:"请输入公司名字",
			link:"请输入域名"
		}
		});
    $("#col1 tr").each(function(i){
	      if(i>0){
	         if(i%2 == 0){
	             $(this).addClass('even');
	         }else{    
	              $(this).addClass('odd'); 
	         }   
	    }
	     });   
	   
	 $("#col1 th").addClass('sortable');
		
	});

</script>
<form:form  action="${contextPath}/admin/license/postUpgrade"  method="post" id="form1" enctype="multipart/form-data" >
  <input id="id" name="id" value="${index.id}" type="hidden">
  <table class="${tableclass}" style="width: 100%">
    <thead>
    	<tr><th> <strong class="am-text-primary am-text-lg">版权管理</strong> /  版权验证</th></tr>
    </thead>
    </table>
    <table class="${tableclass}">
    	<tr>
    		<td rowspan="4" style="vertical-align: middle;width:100px;">版权信息</td>
    		<td width="120px">证书类型</td>
    		<td>${licenseType}</td>
    	</tr>
    	 <tr>
    		<td>域名信息</td>
    		<td>${domainName }</td>
    	</tr>
    	    	<tr>
    		<td>商城版本</td>
    		<td>${version }</td>
    	</tr>
    	 <tr>
    		<td>安装时间</td>
    		<td><fmt:formatDate value="${installDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
    	</tr>
    </table>
  <table class="${tableclass}" id="col1" style="width:100%">
  		<tr><td colspan="2">输入并提交新的版权信息</td></tr>
      <tr>
      <td width="200px"><div align="right">商家编码<font color="#ff0000">*</font></div></td>
      <td>
      <input type="text" name="companyCode" id="companyCode" size="60" value="${bean.companyCode}"  class="${inputclass}" />   &nbsp;&nbsp;<br/>
      		<span style="color:#999;">(商家编码请与朗尊软件联系)</span>
      </td>
    </tr>   
     <tr>
      <td ><div align="right">公司名<font color="#ff0000">*</font></div></td>
      <td>
      <input type="text" name="company" id="company" size="60" value="${bean.company}"  class="${inputclass}" />  &nbsp;&nbsp; <br/>
      		<span style="color:#999;">(请提供本公司的全称)</span>
      </td>
    </tr>   
    <tr>
      <td><div align="right">域名<font color="#ff0000">*</font></div></td>
      <td>
      <input type="text" name="link" id="link" size="60" value="${bean.domainName}" class="${inputclass}" /> &nbsp;&nbsp; <br/>
      		<span style="color:#999;">(请提供本公司的域名,如果有多个域名请以英文逗号","隔开,域名不要带www,例如：legendshop.cn)</span>
      </td>
    </tr>
     <tr>
      <td><div align="right">IP<font color="#ff0000">*</font></div></td>
      <td>
      <input type="text" name="des" id="des" size="60" value="${index.ip}" class="${inputclass}" /> &nbsp;&nbsp; <br/>
      		<span style="color:#999;">(请提供IP地址，如果有多个IP请以英文逗号","隔开)</span>
      </td>
    </tr>
    <tr>
      <td colspan="2">
          <div align="center">
                <input type="submit" value="提交" class="${btnclass}" />
                <input type="reset" value="重置" class="${btnclass}" />
            </div>
      </td>
    </tr>
  </table>
</form:form>